package com.yesep.learn.design.structural.flyweight;

import com.yesep.learn.design.common.pojo.*;

public class VideoPlayerFlyweight extends VideoPlayer implements IMediaPlayerFlyweight {
    private String fileName;

    public VideoPlayerFlyweight(String fileName) {
        this.fileName = fileName;
    }

    @Override
    public void play() {
        super.play(this.fileName);
    }
}